@echo off

call %~dp0ec2_env.bat

for /F "tokens=1,2,4 delims= " %%i in ('%TOOL_HOME%\ec2\bin\ec2-describe-instances.cmd') do (
  echo %%i,%%j,%%k
)